package com.example.framework;

import org.openqa.selenium.By;


public class NavigationHelper extends HelperWithWebDriverBase {

	public NavigationHelper(ApplicationManager manager) {
		super(manager);
	}
	
	public void openMainPage() {
		if (isElementPresent(By.id("maintable"))) {
            return;
		}   else
		openURL(manager.getProperty("baseUrl"));
	}

	public void goToGroupListPage() {
		click(By.linkText("groups"));
	}

	public void returnToHomePage() {
		click(By.linkText("home page"));
	}

}
